Multiple input.next() inside of a while(input.hasNext()) triggers NoSuchElementException in Java

join shbcf.ru